'use strict';

function get_integer_interval(number_a, number_b) {
 let result = [];
 if(number_a>number_b){
   for(let i=number_a;i>=number_b;i--){
     result.push(i);
   }
 }
 else if(number_a<number_b){
  for(let i=number_a;i<=number_b;i++){
    result.push(i);
  }
}
else if(number_a===number_b){
   result.push(number_a);
}
console.log(result);
return result;
}
get_integer_interval(1,5);
get_integer_interval(5,1);
get_integer_interval(5,5);
module.exports = get_integer_interval;

